|
| .NET Framework Class Library |
| TaskCompletionSource<(Of <(TResult>)>) Constructor (TaskCreationOptions) |
| TaskCompletionSource<(Of <(TResult>)>) Class See Also Send Feedback |
Creates a TaskCompletionSource<(Of <(TResult>)>)
with the specified options.
Namespace:
System.Threading.Tasks
Assembly:
System.Threading (in System.Threading.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ creationOptions As TaskCreationOptions _ ) |
| C# |
|---|
public TaskCompletionSource( TaskCreationOptions creationOptions ) |
Parameters
- creationOptions
- Type: System.Threading.Tasks..::.TaskCreationOptions
The options to use when creating the underlying Task<(Of <(TResult>)>).
Remarks
The Task<(Of <(TResult>)>) created
by this instance and accessible through its Task property
will be instantiated using the specified creationOptions.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentOutOfRangeException | The creationOptions represent options invalid for use with a TaskCompletionSource<(Of <(TResult>)>). |